package com.platform.sms;

import com.platform.validator.group.ChuangruiGroup;
import com.platform.validator.group.KingtooGroup;
import com.platform.validator.group.QiniuGroup;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Range;
import org.hibernate.validator.constraints.URL;

import java.io.Serializable;

/**
 * @Description: 短信配置信息
 * @Author: jf2
 * @CreateDate: 2018/5/25 0025 11:12
 * @Version: 1.0
 * Copyright: Copyright (c) 2018
 **/
public class SmsSendConfig implements Serializable {


    /**
     * 类型 1：创瑞 2:创蓝
     */
    @Range(min = 1, max = 3, message = "类型错误")
    private Integer type;

    //创瑞

    /**
     * 创瑞短信发送域名
     */
    @NotBlank(message = "创瑞-发送域名不能为空", groups = ChuangruiGroup.class)
    @URL(message = "创瑞-发送域名必须为URL地址", groups = ChuangruiGroup.class)
    private String crDomain;

    /**
     * 创瑞用户名
     */
    @NotBlank(message = "创瑞-用户名不能为空", groups = ChuangruiGroup.class)
    private String crName;

    /**
     * 创瑞密码(md5加密)
     */
    @NotBlank(message = "创瑞-接口密钥不能为空", groups = ChuangruiGroup.class)
    private String crPwd;

    /**
     * 创瑞签名
     */
    @NotBlank(message = "创瑞-签名不能为空", groups = ChuangruiGroup.class)
    private String crSign;

    //kingtoo 凯信通

    @NotBlank(message = "凯信通-发送域名不能为空", groups = KingtooGroup.class)
    @URL(message = "凯信通-发送域名必须为URL地址", groups = KingtooGroup.class)
    private String ktUrl;
    @NotBlank(message = "凯信通-用户ID不能为空", groups = KingtooGroup.class)
    private String ktUserId;
    @NotBlank(message = "凯信通-用户账号不能为空", groups = KingtooGroup.class)
    private String ktAccount;
    @NotBlank(message = "凯信通-用户密码不能为空", groups = KingtooGroup.class)
    private String ktPassword;
    private String ktAction;
    private String ktSendType;
    private String ktCodingType;
    private String ktBackEncodType;
    @NotBlank(message = "凯信通-签名不能为空", groups = KingtooGroup.class)
    private String ktSign;



    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getCrDomain() {
        return crDomain;
    }

    public void setCrDomain(String crDomain) {
        this.crDomain = crDomain;
    }

    public String getCrName() {
        return crName;
    }

    public void setCrName(String crName) {
        this.crName = crName;
    }

    public String getCrPwd() {
        return crPwd;
    }

    public void setCrPwd(String crPwd) {
        this.crPwd = crPwd;
    }

    public String getCrSign() {
        return crSign;
    }

    public void setCrSign(String crSign) {
        this.crSign = crSign;
    }

    public String getKtUrl() {
        return ktUrl;
    }

    public void setKtUrl(String ktUrl) {
        this.ktUrl = ktUrl;
    }

    public String getKtUserId() {
        return ktUserId;
    }

    public void setKtUserId(String ktUserId) {
        this.ktUserId = ktUserId;
    }

    public String getKtAccount() {
        return ktAccount;
    }

    public void setKtAccount(String ktAccount) {
        this.ktAccount = ktAccount;
    }

    public String getKtPassword() {
        return ktPassword;
    }

    public void setKtPassword(String ktPassword) {
        this.ktPassword = ktPassword;
    }

    public String getKtAction() {
        return ktAction;
    }

    public void setKtAction(String ktAction) {
        this.ktAction = ktAction;
    }

    public String getKtSendType() {
        return ktSendType;
    }

    public void setKtSendType(String ktSendType) {
        this.ktSendType = ktSendType;
    }

    public String getKtCodingType() {
        return ktCodingType;
    }

    public void setKtCodingType(String ktCodingType) {
        this.ktCodingType = ktCodingType;
    }

    public String getKtBackEncodType() {
        return ktBackEncodType;
    }

    public void setKtBackEncodType(String ktBackEncodType) {
        this.ktBackEncodType = ktBackEncodType;
    }

    public String getKtSign() {
        return ktSign;
    }

    public void setKtSign(String ktSign) {
        this.ktSign = ktSign;
    }
}
